package com.hsteach.web.controller.activity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hsteach.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 活动对象
 * 
 * @author ruoyi
 * @date 2023-07-07
 */
@ApiModel(value = "AddActivityDto", description = "活动对象")
@Data
public class AddActivityDto implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 标题 */
    @Excel(name = "标题")
    @ApiModelProperty(value = "标题", required = true)
    private String title;

    /** 活动内容 */
    @Excel(name = "活动内容")
    @ApiModelProperty(value = "活动内容", required = true)
    private String context;

    /** 名额 */
    @Excel(name = "名额")
    @ApiModelProperty(value = "名额，传-1则表示不限制名额", required = true)
    private Long enrollTotal;

    /** 报名开始时间 */
    @ApiModelProperty(value = "报名开始时间 yyyy-MM-dd HH:mm:ss", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "报名开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date enrollBegin;

    /** 报名结束时间 */
    @ApiModelProperty(value = "报名结束时间 yyyy-MM-dd HH:mm:ss", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "报名结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date enrollEnd;

    @ApiModelProperty(value = "发布班级id", required = true)
    private List<EclassDto> classes;

    @ApiModelProperty(value = "图片Url列表", required = false)
    private List<String> imgs;

    @ApiModelProperty(value = "附件url列表", required = false)
    private List<ActivityFileDto> files;
}
